package service

type PunchInData struct {
	Id     int
	Uid    int
	Time   int64
	Device int
}

func GetPunchInList(uid int, from, to int64) ([]*PunchInData, error) {
	list := []*PunchInData{}
	err := ReqSvc("punchin", "GetPunchInList", map[string]interface{}{
		"Uid":  uid,
		"From": from,
		"To":   to,
	}, &list)
	return list, err
}

func ScanPunchInList(uid int, last, limit int) ([]*PunchInData, error) {
	list := []*PunchInData{}
	err := ReqSvc("punchin", "ScanPunchInList", map[string]interface{}{
		"Uid":   uid,
		"Last":  last,
		"Limit": limit,
	}, &list)
	return list, err
}
